package cn.itcast.bos.service.base.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import cn.itcast.bos.dao.base.StandardDao;
import cn.itcast.bos.domain.base.Standard;
import cn.itcast.bos.service.base.StandardService;

@Service
public class StandServiceImp implements StandardService {

	@Autowired
	private StandardDao standardDao;

	@Override
	public void save(Standard standard) {
		standardDao.save(standard);
	}

	@Override
	public Page<Standard> findAll(Pageable  pageable) {
		 Page<Standard> page = standardDao.findAll(pageable);
		 return page;
		
	}

	@Override
	public List<Standard> findAll() {
		return standardDao.findAll();
	}


	
	

}
